package sharedjplaylist.client.top;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.ui.RootPanel;

public class TopEntryPoint implements EntryPoint {

    public void onModuleLoad() {
        String token = History.getToken();
        if(token.isEmpty()){
            RootPanel.get().add(new Index());
        }else{
            RootPanel.get().add(new Index(token));
        }
    }

}
